//
// Created by 1065246 on 2023/5/11.
//
#include <iostream>

template<class NameType, class AgeType>
class TemplateTeacher1 {
public:
    TemplateTeacher1(NameType nameType, AgeType ageType);

    void sayMyself();

    NameType name;
    NameType age;
};

template<class NameType, class AgeType>
TemplateTeacher1<NameType, AgeType>::TemplateTeacher1(NameType nameType, AgeType ageType) {
    name = nameType;
    age = ageType;
}

template<class NameType, class AgeType>
void TemplateTeacher1<NameType, AgeType>::sayMyself(){
    std::cout << "name:" << this->name << std::endl;
    std::cout << "age:" << this->age << std::endl;
}